package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.QuestionItem;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.List;

/**
 * @program: Web综合案例
 * @author: DingYaDong
 * @create: 2021-06-25 10:58
 */
public interface QuestionItemService {
    String save(QuestionItem questionItem,boolean flag);

    int delete(QuestionItem questionItem);

    int update(QuestionItem questionItem);

    QuestionItem findById(String id);

    /**
     * 根据题目id查询所有的选项
     * @param questionId
     * @return
     */
    PageInfo findAll(String questionId,int page,int size);


}
